package com.qst.dao;

import com.qst.po.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface StudentMapper {
    public Student login(@Param("name") String name,@Param("password") String password);

    int gettoallcount();

    List<Student> stugetpage(@Param("page") int i, @Param("limit") int limit);

    int addstudent(Student student);

    Student getstubyid(int id);
    public int updatestudent(Student student);

    int deletstudent(int id);
}
